package com.example.springboot01.service.impl;
import com.example.springboot01.pojo.Managers;  // 正确的Managers类路径
import com.example.springboot01.service.ManagersService;
import com.example.springboot01.mapper.ManagersMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class ManagersServiceImpl implements ManagersService{
    @Resource
    private ManagersMapper managersMapper;
    @Override
    public int insertManagers(Managers managers) {
        // TODO 自动生成的方法存根
        return managersMapper.insertManagers(managers);
        }
    @Override
    public int updateManagers(Managers managers) {
        return managersMapper.updateManagers(managers);
    }

    @Override
    public Managers getManagersByUid(String uid) {
        return managersMapper.getManagersByUid(uid);
    }

    @Override
    public List<Managers> getList(Managers managers) {
        return managersMapper.getList(managers);
    }


}

